// Implements the CvtColor OpenCV effect.
#include "../include/CvtColor.h"

// Class constructor. Receives the effect's needed code value.
CvtColor::CvtColor(int code) : codeValue(code) {
}
// Class destructor.
CvtColor::~CvtColor(void) {}

// Returns the given picture in grayscale.
void CvtColor::processEffect(Mat& src, Mat& dst) {
	cvtColor(src, dst, codeValue, 0);
}
